home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 February / maximum-cd-2012-02.iso / DiscContents / TheWagerSetup1.2.exe / Assets / Scripts / [78].lua < prev    next >
Encoding:
Text File  |  2011-11-07  |  997 b   |  20 lines

  1. -- Script [78]
  2. Starting = 0;
  3. SeaEvent = 1;
  4. SetEventTitle("Hit a reef!");
  5.  
  6. SetBoolFlag(3, True);
  7.  
  8. SetStartingEvent(ScriptID, false);
  9.  
  10. if (HasUpgrade("{crowsnest}")) then
  11.   
  12.   ShowStoryText("One of the crew reports to you in the morning that you were on course to hit a large reef, but thanks to the better view afforded by the crow's nest he managed to spot it in time to avoid a collision. You have the man flogged for attempting to curry favour.");
  13.   
  14. else
  15.  
  16.   ShowStoryText("You wake suddenly from a particularly pleasant dream about a clandestine liason with one of the senior members of the Adjudity, to find the ship shuddering and lurching horrendously. By the time you and your crew get your act together, you realise that you have hit a large reef. The treasure hold is starting to fill with water, leaving your ship in danger of sinking and, more importantly, any treasure you are carrying may be lost!");  
  17.   
  18.   AddChoice("Well don't just stand there!", "[79]");
  19.   
  20. end